package com.xjzp.business.bean;

import java.math.BigDecimal;

public class ReportStatisticsBean {
	private int id;
	private int item_id;
	private String item_name;
	private BigDecimal avg1;
	private BigDecimal avg2;
	private BigDecimal avg3;
	private BigDecimal avg4;
	private BigDecimal avg5;
	private BigDecimal sd1;
	private BigDecimal sd2;
	private BigDecimal sd3;
	private BigDecimal sd4;
	private BigDecimal sd5;
	private BigDecimal sd1_lower;
	private BigDecimal sd1_upper;
	private BigDecimal sd2_lower;
	private BigDecimal sd2_upper;
	private BigDecimal sd3_lower;
	private BigDecimal sd3_upper;
	private BigDecimal sd4_lower;
	private BigDecimal sd4_upper;
	private BigDecimal sd5_lower;
	private BigDecimal sd5_upper;
	
	public void flush(){
		sd1_upper = avg1.add(sd1.multiply(new BigDecimal(3))).setScale(3, BigDecimal.ROUND_HALF_UP);
		sd1_lower = avg1.subtract(sd1.multiply(new BigDecimal(3))).setScale(3, BigDecimal.ROUND_HALF_UP);
		sd2_upper = avg2.add(sd2.multiply(new BigDecimal(3))).setScale(3, BigDecimal.ROUND_HALF_UP);
		sd2_lower = avg2.subtract(sd2.multiply(new BigDecimal(3))).setScale(3, BigDecimal.ROUND_HALF_UP);
		sd3_upper = avg3.add(sd3.multiply(new BigDecimal(3))).setScale(3, BigDecimal.ROUND_HALF_UP);
		sd3_lower = avg3.subtract(sd3.multiply(new BigDecimal(3))).setScale(3, BigDecimal.ROUND_HALF_UP);
		sd4_upper = avg4.add(sd4.multiply(new BigDecimal(3))).setScale(3, BigDecimal.ROUND_HALF_UP);
		sd4_lower = avg4.subtract(sd4.multiply(new BigDecimal(3))).setScale(3, BigDecimal.ROUND_HALF_UP);
		sd5_upper = avg5.add(sd5.multiply(new BigDecimal(3))).setScale(3, BigDecimal.ROUND_HALF_UP);
		sd5_lower = avg5.subtract(sd5.multiply(new BigDecimal(3))).setScale(3, BigDecimal.ROUND_HALF_UP);
	}
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getItem_id() {
		return item_id;
	}
	public void setItem_id(int item_id) {
		this.item_id = item_id;
	}
	public String getItem_name() {
		return item_name;
	}
	public void setItem_name(String item_name) {
		this.item_name = item_name;
	}
	public BigDecimal getAvg1() {
		return avg1;
	}
	public void setAvg1(BigDecimal avg1) {
		this.avg1 = avg1;
	}
	public BigDecimal getAvg2() {
		return avg2;
	}
	public void setAvg2(BigDecimal avg2) {
		this.avg2 = avg2;
	}
	public BigDecimal getAvg3() {
		return avg3;
	}
	public void setAvg3(BigDecimal avg3) {
		this.avg3 = avg3;
	}
	public BigDecimal getAvg4() {
		return avg4;
	}
	public void setAvg4(BigDecimal avg4) {
		this.avg4 = avg4;
	}
	public BigDecimal getAvg5() {
		return avg5;
	}
	public void setAvg5(BigDecimal avg5) {
		this.avg5 = avg5;
	}
	public BigDecimal getSd1() {
		return sd1;
	}
	public void setSd1(BigDecimal sd1) {
		this.sd1 = sd1;
	}
	public BigDecimal getSd2() {
		return sd2;
	}
	public void setSd2(BigDecimal sd2) {
		this.sd2 = sd2;
	}
	public BigDecimal getSd3() {
		return sd3;
	}
	public void setSd3(BigDecimal sd3) {
		this.sd3 = sd3;
	}
	public BigDecimal getSd4() {
		return sd4;
	}
	public void setSd4(BigDecimal sd4) {
		this.sd4 = sd4;
	}
	public BigDecimal getSd5() {
		return sd5;
	}
	public void setSd5(BigDecimal sd5) {
		this.sd5 = sd5;
	}
	public BigDecimal getSd1_lower() {
		return sd1_lower;
	}
	public void setSd1_lower(BigDecimal sd1_lower) {
		this.sd1_lower = sd1_lower;
	}
	public BigDecimal getSd1_upper() {
		return sd1_upper;
	}
	public void setSd1_upper(BigDecimal sd1_upper) {
		this.sd1_upper = sd1_upper;
	}
	public BigDecimal getSd2_lower() {
		return sd2_lower;
	}
	public void setSd2_lower(BigDecimal sd2_lower) {
		this.sd2_lower = sd2_lower;
	}
	public BigDecimal getSd2_upper() {
		return sd2_upper;
	}
	public void setSd2_upper(BigDecimal sd2_upper) {
		this.sd2_upper = sd2_upper;
	}
	public BigDecimal getSd3_lower() {
		return sd3_lower;
	}
	public void setSd3_lower(BigDecimal sd3_lower) {
		this.sd3_lower = sd3_lower;
	}
	public BigDecimal getSd3_upper() {
		return sd3_upper;
	}
	public void setSd3_upper(BigDecimal sd3_upper) {
		this.sd3_upper = sd3_upper;
	}
	public BigDecimal getSd4_lower() {
		return sd4_lower;
	}
	public void setSd4_lower(BigDecimal sd4_lower) {
		this.sd4_lower = sd4_lower;
	}
	public BigDecimal getSd4_upper() {
		return sd4_upper;
	}
	public void setSd4_upper(BigDecimal sd4_upper) {
		this.sd4_upper = sd4_upper;
	}
	public BigDecimal getSd5_lower() {
		return sd5_lower;
	}
	public void setSd5_lower(BigDecimal sd5_lower) {
		this.sd5_lower = sd5_lower;
	}
	public BigDecimal getSd5_upper() {
		return sd5_upper;
	}
	public void setSd5_upper(BigDecimal sd5_upper) {
		this.sd5_upper = sd5_upper;
	}
}
